package com.example.applicationjet.lifecycle

import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

/**
 * Lifecycle 监听器
 */
class ActivityObserver : LifecycleObserver{
    private val TAG = "Lifecycle_Test"

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    public fun start() {
        Log.i(TAG, "connect: start");
    }
    @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    public fun stop() {
        Log.i(TAG, "connect: stop");
    }
}